Here is a simple script using a variable with a leading underscore
string _s = "test" print _s
The first time it is runs it gives the runtime error
-E- DXL: <Line:1> syntax error
If you hit run again then it executes and prints 'test'
Anybody know why this happens? Sean DoorsXLAustralia - Fri Dec 04 19:07:41 EST 2015 |
Re: DXL variable name leading underscore gives error The DXL manual states: An identifier is an arbitrarily long sequence of characters. The first character must be a letter; the rest of the identifier may contain letters, numerals or either of the following two symbols:_ ' That DXL does not check correctly for this, does not mean you are allowed to use it. DXL has a lot of these quirks. You learn which ones you can ignore and which one you cannot over time. This one I would not ignore. Use nice variable names. Regards, Mathias |